package com.example.xiaohei.bingdingadapter

import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
import com.example.xiaohei.base.BaseAdapter
import com.example.xiaohei.ui.adapter.MyAdapter

object ViewAdapter {
    @BindingAdapter(value = ["rvAdapter"], requireAll = false)
    @JvmStatic
    fun setContent(rv: RecyclerView, adapter: BaseAdapter?) {
        adapter?.let {
            rv.adapter = it
        }
    }


}